package defpackage; import defpackage.rwc; import defpackage.sfa; import org.eclipse.paho.client.mqttv3.MqttTopic; /* renamed from: rwb reason: default package */ public class rwb extends cnu { static final /* synthetic */ boolean $assertionsDisabled = (!rwb.class.desiredAssertionStatus()); qxr sheet; rty tDu; rwm tGZ; int tII = -1; int tIJ = -1; rwc.b tIK; private rvy tIL; int tIM = 0; int tIN = 0; boolean tIO = false; /* renamed from: rwb$a */ class a extends cnu { String tDY = ""; rnc tDs; private boolean tIP = false; int tIQ; b tIR; int tIS = -1; int tIT = -1; public a() { rwb.this.tDu = new rty(rwb.this.sheet); this.tIR = new b(); this.tIS = -1; this.tIT = -1; this.tIQ = rwb.this.tGZ.Rh("Default"); } /* JADX WARNING: Removed duplicated region for block: B:27:0x0089 */ /* JADX WARNING: Removed duplicated region for block: B:33:0x00d4 */ /* JADX WARNING: Removed duplicated region for block: B:58:? A[RETURN, SYNTHETIC] */ @Override // defpackage.cnu, defpackage.cny public final void a(int i, cob cob) { int i2; a aVar; cob mR; cob mR2; cob mR3 = cob.mR(4144); if (mR3 != null) { int aql = mR3.aql() - 1; if (rwb.this.tII == -1 || aql >= rwb.this.tIJ + rwb.this.tII) { rwb.this.tIJ = aql; } else { rwb.this.tIJ += rwb.this.tII; } } else { rwb.this.tIJ++; if (rwb.this.tII != -1) { rwb.this.tIJ += rwb.this.tII; } } cob mR4 = cob.mR(4851); if (mR4 != null) { this.tIS = mR4.aql(); if (this.tIS == 0) { this.tIS = -1; } rwb.this.tII = this.tIS; } else { rwb.this.tII = -1; } cob mR5 = cob.mR(4850); if (mR5 != null) { this.tIT = mR5.aql(); if (this.tIT == 0) { this.tIT = -1; } } cob mR6 = cob.mR(4208); if (mR6 != null) { this.tIP = true; this.tDY = mR6.toString(); } cob mR7 = cob.mR(4838); if (mR7 != null) { i2 = rwb.this.tGZ.Rh(mR7.toString()); aVar = this; } else { if (rwb.this.tIJ < 256) { int i3 = rwb.this.tIJ; if (rwb.this.tIM != 0) { i2 = rwb.this.tIM; aVar = this; } else { rhd adG = rwb.this.sheet.sNv.adG(i3); if (adG != null) { i2 = adG.eXh(); aVar = this; } else { i2 = rwb.this.tIN; aVar = this; } } } mR = cob.mR(4473); if (mR != null) { String obj = mR.toString(); this.tDs = new rnc(); if (rbk.PE(obj)) { this.tDs.eZv(); } else if (obj.startsWith(MqttTopic.MULTI_LEVEL_WILDCARD)) { obj = obj.replace(MqttTopic.MULTI_LEVEL_WILDCARD, ""); this.tDs.eZx(); } else { this.tDs.eZw(); obj = "file:///" + obj; if (obj.indexOf(92) != -1) { obj = obj.replaceAll("\\\\", "/"); } } this.tDs.setAddress(obj); this.tDs.kZ(rwb.this.tIJ); this.tDs.la(rwb.this.tIJ); this.tDs.aeK(rwb.this.tIK.tJc); this.tDs.aeL(rwb.this.tIK.tJc); } mR2 = cob.mR(4636); if (mR2 == null) { if (this.tDs == null) { this.tDs = new rnc(); } this.tDs.PF(mR2.toString()); return; } return; } aVar.tIQ = i2; mR = cob.mR(4473); if (mR != null) { } mR2 = cob.mR(4636); if (mR2 == null) { } } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4617: return this.tIR; default: return null; } } @Override // defpackage.cnu, defpackage.cny public final void cz(int i) { if (this.tIP) { rvy rvy = rwb.this.tIL; int i2 = rwb.this.tIK.tJc; int i3 = rwb.this.tIJ; rvy.sRH = i2; rvy.tmq = i3; rvy rvy2 = rwb.this.tIL; String str = this.tDY; rvy2.tID = 0; if (!(str == null || str.length() == 0)) { if (str.indexOf("=") == 0) { str = str.substring(1); } String a = rwl.a(str, new rrk(rvy2.sRH, rvy2.sRH, rvy2.tmq, rvy2.tmq)); switch (rvy2.tID) { case 0: rvz rvz = new rvz(); rvz.row = rvy2.sRH; rvz.bvc = rvy2.tmq; rvz.tIE = a; rvy2.tIC.add(rvz); break; } } } int i4 = this.tIS; int i5 = this.tIT; if (!(i4 == -1 && i5 == -1)) { int i6 = rwb.this.tIJ; if (i4 != -1) { i6 += i4; } int i7 = rwb.this.tIK.tJc; if (i5 != -1) { i7 += i5; } rrk rrk = new rrk(rwb.this.tIK.tJc, i7, rwb.this.tIJ, i6); rtw.g(rrk); rwb.this.sheet.E(new rxc(rrk.bxk, rrk.tra, rrk.bxm, rrk.trb)); } rwb.a(rwb.this, this.tIR.tIV, this.tIR.value, this.tIP, this.tIQ, this.tIS, this.tIT); if (this.tDs != null) { rwb.this.sheet.sNL.a(this.tDs); } } } /* renamed from: rwb$b */ class b extends cnu { String tIV = ""; StringBuilder tIW = new StringBuilder(); boolean tIX = false; String value = ""; public b() { } @Override // defpackage.cnu, defpackage.cny public final void a(int i, cob cob) { cob mR = cob.mR(4145); if (mR != null) { this.tIV = mR.toString(); } cob mR2 = cob.mR(4644); if (mR2 != null && mR2.toString().equals("http://www.w3.org/TR/REC-html40")) { rwb.this.tIO = true; } } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIW.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIW); case 4877: return new c(this.tIW); case 4878: return new i(this.tIW); case 4879: return new e(this.tIW); case 4880: return new h(this.tIW); case 4881: return new f(this.tIW); case 4882: return new g(this.tIW); default: return null; } } @Override // defpackage.cnu, defpackage.cny public final void cz(int i) { this.value = this.tIW.toString(); } } /* renamed from: rwb$c */ class c extends cnu { StringBuilder tIY; public c(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); case 4878: return new i(this.tIY); case 4879: return new e(this.tIY); case 4880: return new h(this.tIY); case 4881: return new f(this.tIY); case 4882: return new g(this.tIY); default: return null; } } } /* renamed from: rwb$d */ class d extends cnu { StringBuilder tIY; public d(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { return null; } } /* renamed from: rwb$e */ class e extends cnu { StringBuilder tIY; public e(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); case 4878: return new i(this.tIY); case 4880: return new h(this.tIY); case 4881: return new f(this.tIY); case 4882: return new g(this.tIY); default: return null; } } } /* renamed from: rwb$f */ class f extends cnu { StringBuilder tIY; public f(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); case 4878: return new i(this.tIY); case 4880: return new h(this.tIY); case 4882: return new g(this.tIY); default: return null; } } } /* renamed from: rwb$g */ class g extends cnu { StringBuilder tIY; public g(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); default: return null; } } } /* renamed from: rwb$h */ class h extends cnu { StringBuilder tIY; public h(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); default: return null; } } } /* renamed from: rwb$i */ class i extends cnu { StringBuilder tIY; public i(StringBuilder sb) { this.tIY = sb; } @Override // defpackage.cnu, defpackage.cny public final void aU(String str) { this.tIY.append(str); } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i) { switch (i) { case 4858: return new d(this.tIY); case 4877: return new c(this.tIY); case 4879: return new e(this.tIY); case 4880: return new h(this.tIY); case 4881: return new f(this.tIY); case 4882: return new g(this.tIY); default: return null; } } } public rwb(rwc.b bVar, qxr qxr, rwm rwm, rvy rvy, int i2) { this.tIK = bVar; this.sheet = qxr; this.tGZ = rwm; this.tIL = rvy; this.tIN = i2; } private void a(String str, String str2, int i2, int i3, boolean z, int i4) { if (str2.length() == 0) { this.tDu.bD(i2, i3, i4); } else if (str.equals("Number")) { try { this.tDu.a(i2, i3, i4, sia.RI(str2)); } catch (NumberFormatException e2) { this.tDu.a(i2, i3, i4, str2, false); } } else if (str.equals("Boolean")) { this.tDu.k(i2, i3, i4, sia.RG(str2)); } else if (str.equals("DateTime")) { double aU = rwk.aU(str2, this.sheet.sNo.sMI); if (aU < 0.0d) { aU -= 1.0d; } this.tDu.a(i2, i3, i4, aU); } else if (str.equals("Error")) { this.tDu.a(i2, i3, i4, sfa.a.Ry(str2).byteValue()); } else if (!str.equals("String")) { } else { if (z) { this.tDu.a(i2, i3, i4, str2, true); } else { this.tDu.a(i2, i3, i4, str2, false); } } } static /* synthetic */ void a(rwb rwb, String str, String str2, boolean z, int i2, int i3, int i4) { if (i3 == -1 && i4 == -1) { rwb.a(str, str2, rwb.tIK.tJc, rwb.tIJ, z, i2); } else if (i3 == -1 || i4 == -1) { if (i3 != -1) { String str3 = str2; for (int i5 = 0; i5 < i3 + 1; i5++) { rwb.a(str, str3, rwb.tIK.tJc, rwb.tIJ + i5, z, i2); str3 = ""; } } if (i4 != -1) { String str4 = str2; for (int i6 = 0; i6 < i4 + 1; i6++) { rwb.a(str, str4, rwb.tIK.tJc + i6, rwb.tIJ, z, i2); str4 = ""; } } } else { String str5 = str2; for (int i7 = 0; i7 < i3 + 1; i7++) { rwb.a(str, str5, rwb.tIK.tJc, rwb.tIJ + i7, z, i2); str5 = ""; rwb.a(str, str5, rwb.tIK.tJc + i4, rwb.tIJ + i7, z, i2); } for (int i8 = 1; i8 < i4; i8++) { rwb.a(str, "", rwb.tIK.tJc + i8, rwb.tIJ, z, i2); rwb.a(str, "", rwb.tIK.tJc + i8, rwb.tIJ + i3, z, i2); } } } @Override // defpackage.cnu, defpackage.cny public final void a(int i2, cob cob) { short aIW; cob mR = cob.mR(4144); if (mR != null) { this.tIK.tJc = mR.aql() - 1; } else { this.tIK.tJc++; } cob mR2 = cob.mR(4314); short c2 = sfu.twG.c(sfu.tFc.c(sfu.twE.c(sfu.tiT.c((short) sfu.tiS.bn(256, 0), false), mR2 != null && mR2.aqo()), false), false); cob mR3 = cob.mR(4838); if (mR3 != null) { this.tIM = this.tGZ.Rh(mR3.toString()); } cob mR4 = cob.mR(4366); if (mR4 != null) { aIW = (short) ((int) (mR4.aqp() * 20.0f)); c2 = (short) (c2 | 64); } else { aIW = (short) this.sheet.sNt.aIW(); } rhi rhi = new rhi((short) this.tIK.tJc, aIW, (short) this.tIM, c2); if (!(this.tIM == 0 || this.tIM == 15)) { rhi.EB(true); } this.sheet.sNu.a(rhi); cob mR5 = cob.mR(4883); if (mR5 != null) { int aql = mR5.aql(); for (int i3 = 1; i3 <= aql; i3++) { this.sheet.sNu.a(new rhi((short) (this.tIK.tJc + i3), aIW, (short) this.tIM, c2)); } } } @Override // defpackage.cnu, defpackage.cny public final cny cy(int i2) { switch (i2) { case 4177: return new a(); default: return null; } } }